﻿using Snowflake.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYData.Core.Utilities.Response
{
    public class Ids
    {
        private static IdWorker _worker = new IdWorker(1, 1);

        public static long NextId()
        {
            long id = _worker.NextId();
            return id;
        }

        public static string NextIdString()
        {
            string id = _worker.NextId().ToString();

            return id;
        }
    }
}
